package com.ruoyi.mall.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品规格业务对象 goods_specifications
 *
 * @author ruoyi
 * @date 2024-04-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class GoodsSpecificationsBo extends BaseEntity {

    /**
     * 商品规格表主键ID
     */
    private Long goodsSpecificationsId;

    /**
     * 关联商品信息表主键
     */
    private Long goodsId;

    /**
     * 商品规格名称
     */
    @NotBlank(message = "商品规格名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 商品规格描述
     */
    private String desc;

    /**
     * 删除标志(0：未删除 1：已删除)
     */
    private Integer yn;

    /**
     * 备注
     */
    private String remark;


}
